﻿using System;
using System.Collections.Generic;
using System.Web;

namespace TwentyTree4Umbraco
{
    public class Signature
    {

        public static string Create(List<KeyValuePair<string, string>> paramlist)
        {
            string paramstring = string.Empty;
            if (paramlist != null)
            {
                foreach (KeyValuePair<string, string> element in paramlist)
                {
                    paramstring += element.Key + element.Value;
                }
            }
            return umbraco.library.md5(paramstring + Config.GetSetting("apikey"));
        }
    }
}
